package index;

import java.io.Serializable;
import java.util.List;

import javax.faces.bean.ViewScoped;
import javax.inject.Inject;
import javax.inject.Named;

import com.woupla.company.CompanyEJB;
import com.woupla.model.Company;

@Named
@ViewScoped
public class indexMBean implements Serializable {

	private static final long serialVersionUID = -3704704642788759864L;
	@Inject
	private CompanyEJB companyEJB;
	
	public List<Company> findAllCompanies() {
		List<Company> companies = companyEJB.findAllCompany();
		return companies;
	}

}
